Tip: Storage Is Cheaper Than State |
![]() |
![]() |
Aliased changeable state is a potential broken invariant |
![]() |
Mutable data need defensive locking and/or copying
So... |
![]() |
Implement state changes by recopying immutable data, not poking the guts of mutable ones |
![]() |
Overall copying is reduced, since data can be shared freely |